<%--
  Created by IntelliJ IDEA.
  User: hejingzhou
  Date: 2018/3/8
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传文件</title>
</head>
<body>
<h2>文件上传</h2>
<form action="uploadType1" enctype="multipart/form-data" method="post">
    <table>
        <tr>
            <td>请选择文件</td>
            <td><input type="file" name="fileKey"></td>
        </tr>
        <tr>
            <td><input type="submit" value="上传"></td>
        </tr>
    </table>

</form>
<<br>
<h2>第二种方式通过对象</h2>
<form action="uploadType2" enctype="multipart/form-data" method="post">
    <table>
        <tr>
            <td>请选择文件</td>
            <td><input type="file" name="fileKey"></td>
        </tr>
        <tr>
            <td><input type="submit" value="上传"></td>
        </tr>
    </table>

</form>


</body>
</html>
